﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class CompilationBLL:BaseBLL<Compilation>
    {
        public Compilation entity = new Compilation();
        CompilationDAO dao = new CompilationDAO();
        public override Compilation GetModel()
        {
            return entity;
        }
        /// <summary>
        /// 根据发布信息用户和状态查询任务信息
        /// </summary>
        /// <param name="page"></param>
        /// <param name="pagesize"></param>
        /// <param name="userid"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public IList<Compilation> GetListPaging(int page, int pagesize, int userid, int state)
        {
            return dao.GetListPaging(page, pagesize, userid, state);
        }
        /// <summary>
        /// 根据发布信息用户和状态查询任务信息条目数
        /// </summary>
        /// <param name="userid"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public int GetListPaging(int userid, int state)
        {
            return dao.GetListPaging(userid, state);
        }
        /// <summary>
        /// 根据领受任务用户和状态查询任务信息
        /// </summary>
        /// <param name="page"></param>
        /// <param name="pagesize"></param>
        /// <param name="worker"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public IList<Compilation> GetListPagingByWorker(int page, int pagesize, string worker, int state)
        {
            return dao.GetListPagingByWorker(page, pagesize, worker, state);
        }
        /// <summary>
        /// 根据领受任务用户和状态查询任务信息条目数
        /// </summary>
        /// <param name="worker"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public int GetListPagingByWorker(string worker, int state)
        {
            return dao.GetListPagingByWorker(worker, state);
        }
    }
}
